package com.wing.order.model.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.wing.mybatis.common.BaseEntity;
import com.wing.order.model.response.OrderReceiveDetailVO;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 领货单
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ord_order_receive_detail")
public class OrderReceiveDetail extends BaseEntity<OrderReceiveDetail> implements Serializable {

    private static final long serialVersionUID = 1L;

    public enum Status implements IEnum<Integer> {

        /**
         * 初始值
         */
        created(0,"初始状态"),

        loading(1,"上货中"),
        /**
         * 完成
         */
        finish(2,"完成");

        private int code;
        private String desc;

        Status(int code,String desc){
            this.code=code;
            this.desc=desc;
        }

        @Override
        public Integer getValue(){
            return this.code;
        }

        public String getDesc(){
            return this.desc;
        }
    }

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 领货单id
     */
    private Long receiveId;

    /**
     * sku code
     */
    private String skuCode;

    /**
     * 领取数量
     */
    private Integer quantity;

    /**
     * 配货需求单id
     */
    private Long demandId;

    /**
     * 配货需求单明细id
     */
    private Long demandDetailId;

    private Status status;

    private Long loadPlanId;

    private Long loadPlanDetailId;

}
